/**
 * Created by 000188 on 2016/6/24.
 */
var React = require('react');
var Content = require('content');
var Index = require('scene');
var FastClick = require('fastclick');
let EndAct = require('end-act') ;
var Utils = require('utils');

//容器
var viewport = document.createElement('meta');

//初始化
document.head.appendChild(viewport);
require('../css/style.css');
require('resize');
Utils.GA();
FastClick.attach(document.body);

//head
viewport.name = 'viewport';
viewport.content = "width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no";

//渲染
if(Utils.getUrlParam('act')){
    document.body.appendChild(Content.render(<EndAct />));
}else{
    document.body.appendChild(Content.render(<Index />));
}


